import request from '@/utils/request'

// 查询员工薪资列表
export function listEmployeeSalary(query) {
  return request({
    url: '/system/employee-salary/list',
    method: 'get',
    params: query
  })
}

// 查询员工薪资详细
export function getEmployeeSalary(salaryId) {
  return request({
    url: '/system/employee-salary/' + salaryId,
    method: 'get'
  })
}

// 新增员工薪资
export function addEmployeeSalary(data) {
  return request({
    url: '/system/employee-salary',
    method: 'post',
    data: data
  })
}

// 修改员工薪资
export function updateEmployeeSalary(data) {
  return request({
    url: '/system/employee-salary',
    method: 'put',
    data: data
  })
}

// 删除员工薪资
export function delEmployeeSalary(salaryId) {
  return request({
    url: '/system/employee-salary/' + salaryId,
    method: 'delete'
  })
}

// 导出员工薪资
export function exportEmployeeSalary(query) {
  return request({
    url: '/system/employee-salary/export',
    method: 'get',
    params: query
  })
}